package com.fz.service;

import com.fz.controller.request.BaseRequest;
import com.fz.controller.request.UserPageRequest;
import com.fz.pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    List<User> list();

    //分页
    PageInfo<User> page(BaseRequest baseRequest );

    //添加用户
    void addUser(User user);

    //通过id查询用户
    User getById(Integer id);

    void update(User user);

    void deleteById(Integer id);

    void addAccount(User user);
}
